package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 日用水量对象 water_daily_usage
 *
 * @author ruoyi
 * @date 2025-09-20
 */
public class WaterDailyUsage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 表号 */
    @Excel(name = "表号")
    private String meterNo;

    /** 户号 */
    @Excel(name = "户号")
    private String userId;

    /** 户名 */
    @Excel(name = "户名")
    private String userName;

    /** 读数日期 */
    @Excel(name = "读数日期")
    private String readingDate;

    private String startDay;
    private String endDay;

    /** 日用水量(立方米) */
    @Excel(name = "日用水量(吨)")
    private BigDecimal dailyConsumption;

    /** 当前读数 */
    @Excel(name = "当前读数")
    private BigDecimal currentReading;

    /** 上次读数 */
    @Excel(name = "上次读数")
    private BigDecimal previousReading;

    /** 抄表员ID */
    private String readerId;

    /** 抄表员名称 */
    @Excel(name = "抄表员名称")
    private String readerName;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMeterNo(String meterNo)
    {
        this.meterNo = meterNo;
    }

    public String getMeterNo()
    {
        return meterNo;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setReadingDate(String readingDate)
    {
        this.readingDate = readingDate;
    }

    public String getReadingDate()
    {
        return readingDate;
    }
    public void setDailyConsumption(BigDecimal dailyConsumption)
    {
        this.dailyConsumption = dailyConsumption;
    }

    public BigDecimal getDailyConsumption()
    {
        return dailyConsumption;
    }
    public void setCurrentReading(BigDecimal currentReading)
    {
        this.currentReading = currentReading;
    }

    public BigDecimal getCurrentReading()
    {
        return currentReading;
    }
    public void setPreviousReading(BigDecimal previousReading)
    {
        this.previousReading = previousReading;
    }

    public BigDecimal getPreviousReading()
    {
        return previousReading;
    }
    public void setReaderId(String readerId)
    {
        this.readerId = readerId;
    }

    public String getReaderId()
    {
        return readerId;
    }
    public void setReaderName(String readerName)
    {
        this.readerName = readerName;
    }

    public String getReaderName()
    {
        return readerName;
    }

    public String getStartDay() {
        return startDay;
    }

    public void setStartDay(String startDay) {
        this.startDay = startDay;
    }

    public String getEndDay() {
        return endDay;
    }

    public void setEndDay(String endDay) {
        this.endDay = endDay;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("meterNo", getMeterNo())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("readingDate", getReadingDate())
            .append("dailyConsumption", getDailyConsumption())
            .append("currentReading", getCurrentReading())
            .append("previousReading", getPreviousReading())
            .append("readerId", getReaderId())
            .append("readerName", getReaderName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
